import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/sysm/oauthClientDetails/',
    method: 'get',
    params: query
  })
}

export function saveOrUpdate(param) {
  return request.post('/sysm/oauthClientDetails/', JSON.stringify(param))
}

export function audit(param) {
  return request({
    url: `/sysm/oauthClientDetails/approve`,
    method: 'post',
    params: param
  })
}

export function deleteById(id) {
  return request({
    url: `/sysm/oauthClientDetails/${id}`,
    method: 'delete'
  })
}

export function updatePwd(param) {
  return request({
    url: `/sysm/oauthClientDetails/updatePwd`,
    method: 'post',
    params: param
  })
}
